<?php

declare(strict_types=1);

namespace App\Migration;

use PDO;

/**
 * Minimal migration contract understood by the custom migration runner.
 */
interface MigrationInterface
{
    /**
     * Unique identifier for the migration (typically timestamped file name).
     */
    public function getId(): string;

    /**
     * Apply the migration in an idempotent-safe way.
     */
    public function up(PDO $pdo): void;

    /**
     * Roll back the migration.
     */
    public function down(PDO $pdo): void;
}
